package com.proyecto.spv.client.view;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.DecoratorPanel;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.HorizontalPanel;

public class AgregarTrabajadorView extends Composite {

	public AgregarTrabajadorView() {
		
		VerticalPanel verticalPanel = new VerticalPanel();
		verticalPanel.setSpacing(10);
		initWidget(verticalPanel);
		
		DecoratorPanel decoratorPanel_1 = new DecoratorPanel();
		verticalPanel.add(decoratorPanel_1);
		decoratorPanel_1.setWidth("413px");
		
		FlexTable flexTable_1 = new FlexTable();
		decoratorPanel_1.setWidget(flexTable_1);
		flexTable_1.setSize("375px", "89px");
		
		Label label = new Label("Datos Personales");
		label.setStyleName("gwt-Label-Title");
		label.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		flexTable_1.setWidget(0, 0, label);
		
		Label label_1 = new Label("DNI:");
		label_1.setStyleName("gwt-label-normal");
		flexTable_1.setWidget(1, 0, label_1);
		
		TextBox textBox_7 = new TextBox();
		flexTable_1.setWidget(1, 1, textBox_7);
		
		Label label_2 = new Label("Nombres:");
		label_2.setStyleName("gwt-label-normal");
		flexTable_1.setWidget(2, 0, label_2);
		
		TextBox textBox_8 = new TextBox();
		flexTable_1.setWidget(2, 1, textBox_8);
		
		Label label_3 = new Label("Apellido Paterno:");
		label_3.setStyleName("gwt-label-normal");
		flexTable_1.setWidget(3, 0, label_3);
		
		TextBox textBox_9 = new TextBox();
		flexTable_1.setWidget(3, 1, textBox_9);
		
		Label label_4 = new Label("Apellido Materno:");
		label_4.setStyleName("gwt-label-normal");
		flexTable_1.setWidget(4, 0, label_4);
		
		TextBox textBox_10 = new TextBox();
		flexTable_1.setWidget(4, 1, textBox_10);
		
		Label label_5 = new Label("Fecha de Nacimiento:");
		label_5.setStyleName("gwt-label-normal");
		flexTable_1.setWidget(5, 0, label_5);
		
		TextBox textBox_11 = new TextBox();
		flexTable_1.setWidget(5, 1, textBox_11);
		
		Label label_6 = new Label("Sexo:");
		label_6.setStyleName("gwt-label-normal");
		flexTable_1.setWidget(6, 0, label_6);
		
		ListBox listBox = new ListBox();
		flexTable_1.setWidget(6, 1, listBox);
		listBox.setWidth("168px");
		
		Label label_7 = new Label("Telefono:");
		label_7.setStyleName("gwt-label-normal");
		flexTable_1.setWidget(7, 0, label_7);
		
		TextBox textBox_12 = new TextBox();
		flexTable_1.setWidget(7, 1, textBox_12);
		
		Label label_8 = new Label("Direccion:");
		label_8.setStyleName("gwt-label-normal");
		flexTable_1.setWidget(8, 0, label_8);
		
		TextBox textBox_13 = new TextBox();
		flexTable_1.setWidget(8, 1, textBox_13);
		
		DecoratorPanel decoratorPanel = new DecoratorPanel();
		verticalPanel.add(decoratorPanel);
		decoratorPanel.setWidth("413px");
		
		FlexTable flexTable = new FlexTable();
		decoratorPanel.setWidget(flexTable);
		flexTable.setSize("375px", "89px");
		
		Label lblDatosPersonales = new Label("Datos Laborales");
		lblDatosPersonales.setStyleName("gwt-Label-Title");
		lblDatosPersonales.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		flexTable.setWidget(0, 0, lblDatosPersonales);
		
		Label lblDni = new Label("Categoria:");
		lblDni.setStyleName("gwt-label-normal");
		flexTable.setWidget(1, 0, lblDni);
		
		ListBox listBox_1 = new ListBox();
		flexTable.setWidget(1, 1, listBox_1);
		listBox_1.setWidth("168px");
		
		Label lblNombres = new Label("Sujeto a jornada de trabajo max:");
		lblNombres.setStyleName("gwt-label-normal");
		flexTable.setWidget(2, 0, lblNombres);
		flexTable.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_RIGHT);
		flexTable.getCellFormatter().setHorizontalAlignment(2, 0, HasHorizontalAlignment.ALIGN_RIGHT);
		flexTable.getCellFormatter().setVerticalAlignment(2, 0, HasVerticalAlignment.ALIGN_MIDDLE);
		flexTable.getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_MIDDLE);
		
		ListBox listBox_2 = new ListBox();
		flexTable.setWidget(2, 1, listBox_2);
		listBox_2.setWidth("168px");
		
		Label lblApellidoPaterno = new Label("Asignacion familiar:");
		lblApellidoPaterno.setStyleName("gwt-label-normal");
		flexTable.setWidget(3, 0, lblApellidoPaterno);
		
		ListBox listBox_3 = new ListBox();
		flexTable.setWidget(3, 1, listBox_3);
		listBox_3.setWidth("168px");
		
		Label lblApellidoMaterno = new Label("Turno de trabajo:");
		lblApellidoMaterno.setStyleName("gwt-label-normal");
		flexTable.setWidget(4, 0, lblApellidoMaterno);
		
		ListBox listBox_4 = new ListBox();
		flexTable.setWidget(4, 1, listBox_4);
		listBox_4.setWidth("168px");
		
		Label lblFechaDeNacimiento = new Label("Retencion judicial:");
		lblFechaDeNacimiento.setStyleName("gwt-label-normal");
		flexTable.setWidget(5, 0, lblFechaDeNacimiento);
		
		ListBox listBox_5 = new ListBox();
		flexTable.setWidget(5, 1, listBox_5);
		listBox_5.setWidth("168px");
		
		Label lblSexo = new Label("Estado:");
		lblSexo.setStyleName("gwt-label-normal");
		flexTable.setWidget(6, 0, lblSexo);
		
		ListBox comboBox = new ListBox();
		flexTable.setWidget(6, 1, comboBox);
		comboBox.setWidth("168px");
		flexTable.getCellFormatter().setHorizontalAlignment(3, 0, HasHorizontalAlignment.ALIGN_RIGHT);
		flexTable.getCellFormatter().setVerticalAlignment(3, 0, HasVerticalAlignment.ALIGN_MIDDLE);
		flexTable.getCellFormatter().setHorizontalAlignment(4, 0, HasHorizontalAlignment.ALIGN_RIGHT);
		flexTable.getCellFormatter().setVerticalAlignment(4, 0, HasVerticalAlignment.ALIGN_MIDDLE);
		flexTable.getCellFormatter().setHorizontalAlignment(5, 0, HasHorizontalAlignment.ALIGN_RIGHT);
		flexTable.getCellFormatter().setVerticalAlignment(5, 0, HasVerticalAlignment.ALIGN_MIDDLE);
		flexTable.getCellFormatter().setHorizontalAlignment(6, 0, HasHorizontalAlignment.ALIGN_RIGHT);
		flexTable.getCellFormatter().setVerticalAlignment(6, 0, HasVerticalAlignment.ALIGN_MIDDLE);
		flexTable.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT);
		flexTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_MIDDLE);
		
		HorizontalPanel horizontalPanel = new HorizontalPanel();
		horizontalPanel.setSpacing(10);
		verticalPanel.add(horizontalPanel);
		verticalPanel.setCellVerticalAlignment(horizontalPanel, HasVerticalAlignment.ALIGN_MIDDLE);
		verticalPanel.setCellHorizontalAlignment(horizontalPanel, HasHorizontalAlignment.ALIGN_CENTER);
		
		Button btnAgregar = new Button("Agregar");
		horizontalPanel.add(btnAgregar);
		btnAgregar.setWidth("88px");
		
		Button btnLimpiar = new Button("Limpiar");
		horizontalPanel.add(btnLimpiar);
		btnLimpiar.setWidth("90px");
	}

}
